﻿<%@ Page Language="C#" MasterPageFile="~/IPMSMasterPage.master" AutoEventWireup="true" CodeFile="SysUsersUpdate.aspx.cs" Inherits="SysUsersUpdate" Title="Project Monitoring System" Culture="Auto:en-US" UICulture="auto" meta:resourcekey="PageResource1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server" Visible="false"/>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" runat="Server">
	<div style="padding: 10px; vertical-align:top">
		<asp:Panel ID="panelUserGroup" runat="server">
			<fieldset>
				<legend>
					<asp:Label ID="lblEditUserGroup" Text="Edit User Account" meta:resourcekey="lblEditUserGroupResource1" runat="server"/>
				</legend>
				<table>
					<tr>
						<td align="right">
							<asp:Label ID="lblLoginName" Text="Login Name" meta:resourcekey="lblLoginNameResource1" runat="server"/>
						</td>
						<td>
							<asp:Label ID="lblUserId" Visible="false" runat="server" />
							<asp:TextBox ID="txtLoginName" MaxLength="50" Width="150px" Enabled="false" runat="server"/>
						</td>
						<td align="right">
							<asp:Label ID="lblUserName" Text="User Name" meta:resourcekey="lblUserNameResource1" runat="server"/>
						</td>
						<td>
							<asp:TextBox ID="txtUserName" MaxLength="50" Width="150px" runat="server"/>
							<asp:RequiredFieldValidator ID="RequiredFieldValidator6" ControlToValidate="txtUserName" Display="Dynamic" ErrorMessage="User Name is a required field." meta:resourcekey="RequiredFieldValidator6Resource1" runat="server"/>
						</td>
					</tr>
					<tr>
						<td align="right">
							<asp:Label ID="lblGroupName" Text="Group Name" meta:resourcekey="lblGroupNameResource1" runat="server"/>
						</td>
						<td>
							<asp:DropDownList ID="ddlGroup" Width="150px" runat="server"/>
							<asp:RequiredFieldValidator ID="RequiredFieldValidator1" ControlToValidate="ddlGroup" Display="Dynamic" ErrorMessage="Group is a required field." meta:resourcekey="RequiredFieldValidator1Resource1" runat="server"/>
						</td>
						<td>
							<asp:Label ID="lblUserRole" Text="User Role" runat="server" meta:resourcekey="lblUserRoleResource1"/>
						</td>
						<td>
							<asp:DropDownList ID="lstUserRole" runat="server"/>
						</td>
					</tr>
					<tr>
						<td align="right">
							<asp:Label ID="lblEmail" Text="Email" meta:resourcekey="lblEmailResource1" runat="server"/>
						</td>
						<td>
							<asp:TextBox ID="txtEmail" MaxLength="100" Width="250px" runat="server"/>
						</td>
						<td align="right">
							<asp:Label ID="lblPhoneNum" Text="Phone Number" meta:resourcekey="lblPhoneNumResource1" runat="server"/>
						</td>
						<td>
							<asp:TextBox ID="txtPhoneNum" MaxLength="100" Width="150px" runat="server"/>
						</td>
					</tr>
					<tr>
						<td align="right">
							<asp:Label ID="lblAddress" Text="Address" meta:resourcekey="lblAddressResource1" runat="server"/>
						</td>
						<td colspan="3">
							<asp:TextBox ID="txtAddress" MaxLength="200" Width="600px" runat="server"/>
						</td>
					</tr>
					<tr>
						<td align="right" valign="top">
							<asp:Label ID="lblRemark" meta:resourcekey="lblRemarkResource1" Text="Remark" runat="server"/>
						</td>
						<td colspan="3">
							<asp:TextBox ID="txtRemark" TextMode="MultiLine" MaxLength="200" rows="10" Width="600px" runat="server"/>
						</td>
					</tr>
					<tr>
						<td>
							<asp:Label ID="lblSuspend" Text="Suspend" runat="server" meta:resourcekey="lblSuspendResource1"/>
						</td>
						<td>
							<asp:DropDownList ID="lstSuspend" runat="server"/>
						</td>
						<td>
							<asp:Label ID="lblAdvanceAlertDay" Text="AdvanceAlertDay" runat="server" meta:resourcekey="lblAdvanceAlertDayResource1"/>
						</td>
						<td>
							<asp:TextBox ID="txtAdvanceAlertDay" MaxLength="5" runat="server"/>
							 <asp:CompareValidator ID="CompareValidator1" runat="server" Display="Static" ErrorMessage="*"
                                ValidationGroup="" ControlToValidate="txtAdvanceAlertDay" Operator="DataTypeCheck"
                                Type="Integer">
                            </asp:CompareValidator> 
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtAdvanceAlertDay" Display="Dynamic" ErrorMessage="AdvanceAlertDay is a required field." meta:resourcekey="RequiredFieldValidator2Resource1"/>
						</td>
					</tr>
					<tr>
						<td colspan="4" align="center">
							<asp:Button ID="btnSave" Text="Save" meta:resourcekey="btnSaveResource1" runat="server" onclick="OnClick"/>
							<asp:Button ID="btnCancel" Text="Back" CausesValidation="false" meta:resourcekey="btnCancelResource1" runat="server" onclick="OnClick"/>
						</td>
					</tr>
					<tr>
						<td colspan="4">
							<asp:Label ID="lblError" ForeColor="Red" CssClass="error" runat="server"/>
						</td>
					</tr>
				</table>
			</fieldset>
		</asp:Panel>
	</div>
</asp:Content>

